{foreach name="form_data" item="val"}

{if condition="$val['id'] == 'start_time'"}
{php}continue;{/php}
{/if}

{if condition="$val.config.is_delete == true || true"}

	{eq name="val.component" value="input"}
		<div class="col-xs-6 col-sm-5">
			<div class="form-group col-sm-10">
				<span class="text-muted">{$val.config.label}:</span>
				{:$row[$val['id']]??''}
			</div>
		</div>
	{/eq}

	{eq name="val.component" value="input-number"}
		<div class="col-xs-6 col-sm-5">
			<div class="form-group col-sm-10">
				<span class="text-muted">{$val.config.label}:</span>
				{:$row[$val['id']]??''}
			</div>
		</div>
	{/eq}
	{eq name="val.component" value="textarea"}
	<div class="col-xs-12 col-sm-10">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{:$row[$val['id']]??''}
		</div>
	</div>
	{/eq}

	{eq name="val.component" value="radio"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{:$row[$val['id']]??''}

		</div>
	</div>
	{/eq}

	{eq name="val.component" value="checkbox"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{:$row[$val['id']]??''}
		</div>
	</div>
	{/eq}
	{eq name="val.component" value="Cascader"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{:$row[$val['id']]??''}
		</div>
	</div>
	{/eq}

	{eq name="val.component" value="select"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{:$row[$val['id']]??''}
		</div>
	</div>
	{/eq}

	{eq name="val.component" value="TimePicker"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{:$row[$val['id']]??''}
		</div>
	</div>
	{/eq}

	{eq name="val.component" value="DatePicker"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{:$row[$val['id']]??''}
		</div>
	</div>
	{/eq}
	{eq name="val.component" value="Rate"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{:$row[$val['id']]??''}
		</div>
	</div>
	{/eq}
	{eq name="val.component" value="uploadImage"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{if condition="isset($row[$val['id']]) && $row[$val['id']] neq ''"}
			{foreach name="$row[$val['id']]" id="v"}
			<a href="{:$v.file_path??''}" target="_blank" style="margin-right:10px;">
				<img  src="{:$v.file_path??''}" data-tips-image width="100px" height="100px" alt="">
			</a>
			{/foreach}
			{/if}
		</div>
	</div>
	{/eq}

	{eq name="val.component" value="uploadFile"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{if condition="isset($row[$val['id']]) && $row[$val['id']] neq ''"}
			{foreach name="$row[$val['id']]" id="v" k="key"}
			<a href="{:$v.file_path??''}" target="_blank" style="margin-right:10px;">
				{$v.name}
			</a>
			{/foreach}
			{/if}
		</div>
	</div>
	{/eq}

	<!--金额-->
	{eq name="val.component" value="input-money"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{$row[$val['id']]|default=''}
		</div>
	</div>
	{/eq}
	<!--	手机号-->
	{eq name="val.component" value="input-mobile"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{$row[$val['id']]|default=''}
		</div>
	</div>
	{/eq}
	<!--邮箱-->
	{eq name="val.component" value="input-email"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{$row[$val['id']]|default=''}
		</div>
	</div>
	{/eq}
	<!--编辑器-->
	{eq name="val.component" value="editor"}
	<div class="col-xs-12 col-sm-10">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{$row[$val['id']]|default=''}
		</div>
	</div>
	{/eq}
	<!--开关-->
	{eq name="val.component" value="switch"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			<a href="javascript:;" data-toggle="switcher" disabled class="btn-switcher" data-input-id="c-{$val.id}" data-yes="1" data-no="0" >
				{if condition="isset($row[$val['id']])"}
					{eq name="$row[$val['id']]" value="0"}
					<i class='fa fa-toggle-on text-success fa-flip-horizontal text-gray fa-2x'></i>
					{else/}
					<i class='fa fa-toggle-on text-success fa-2x'></i>
					{/eq}
				{else/}
					<i class='fa fa-toggle-on text-success fa-flip-horizontal text-gray fa-2x'></i>
				{/if}

			</a>
		</div>
	</div>
	{/eq}

	<!--地理位置-->
	{eq name="val.component" value="location"}

	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{$row[$val['id']]|default=''}
			<a href="https://apis.map.qq.com/uri/v1/marker?marker=coord:{$row[$val['id'].'_lat']|default=''},{$row[$val['id'].'_lng']|default=''};title:{$row.name|default=''};addr:{$row[$val['id']]|default=''}&referer=crm" target="_blank" ><i class="fa fa-map-marker text-blue" style="font-size: 18px;margin-right:4px"></i></a>
		</div>
	</div>

	{/eq}
	<!--地图-->
	{eq name="val.component" value="map"}

	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{$row[$val['id']]|default=''}
			<a href="https://apis.map.qq.com/uri/v1/marker?marker=coord:{$row[$val['id'].'_lat']|default=''},{$row[$val['id'].'_lng']|default=''};title:{$row.name|default=''};addr:{$row[$val['id']]|default=''}&referer=crm" target="_blank" ><i class="fa fa-map-marker text-blue" style="font-size: 18px;margin-right:4px"></i></a>
		</div>
	</div>
	{/eq}
	<!--关联客户-->
	{eq name="val.component" value="customer"}

	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{if condition="isset($row[$val['id']]) && $row[$val['id']]"}
			{$row[$val['id']]['name']|default=''}
			{/if}
		</div>
	</div>
	{/eq}
	<!--关联联系人-->
	{eq name="val.component" value="contact"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{if condition="isset($row[$val['id']]) && $row[$val['id']]"}
			{$row[$val['id']]['name']|default=''}
			{/if}
		</div>
	</div>
	{/eq}
	<!--关联订单-->
	{eq name="val.component" value="contract"}
	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{if condition="isset($row[$val['id']]) && $row[$val['id']]"}
			{$row[$val['id']]['name']|default=''}
			{/if}
		</div>
	</div>
	{/eq}
	<!--关联商机-->
	{eq name="val.component" value="business"}

	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{if condition="isset($row[$val['id']]) && $row[$val['id']]"}
			{$row[$val['id']]['name']|default=''}
			{/if}
		</div>
	</div>
	{/eq}
	<!--关联员工-->
	{eq name="val.component" value="staff"}

	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{if condition="isset($row[$val['id']]) && $row[$val['id']]"}
			{$row[$val['id']]['name']|default=''}
			{/if}
		</div>
	</div>
	{/eq}
	<!--关联部门-->
	{eq name="val.component" value="department"}

	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{if condition="isset($row[$val['id']]) && $row[$val['id']]"}
			{$row[$val['id']]['name']|default=''}
			{/if}
		</div>
	</div>
	{/eq}
	<!--标签-->
	{eq name="val.component" value="label"}

	<div class="col-xs-12 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">{$val.config.label}:</span>
			{if condition="isset($row[$val['id']]) && $row[$val['id']]"}

				{php}$label_info=explode(',',$row[$val['id']]);{/php}
				{foreach name="$label_info" item="tem"}
				{php}$label_color=explode('^',$tem);{/php}
				{if condition="isset($label_color[1])"}
				<div class="label" style="margin-left:5px;background: rgba(0, 82, 204, 0.1);color: {$label_color.1}">{$label_color.0}</div>
				{/if}
				{/foreach}
			{/if}
		</div>
	</div>
	{/eq}

{/if}
{/foreach}